using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class Player : MonoBehaviour {
	
	// Properties
	//
	
	public Hand CurrentHand;
	
	public Deck CurrentDeck;
	
	public List<Wall> Walls;
	
	public Tower CurrentTower;
	
	public List<Goal> Goals;
	
	
	// Player Ressources
	public int Magic = 0;
	public int Rocks = 0;
	public int Beast = 0;
	
	// Player incomes
	public int Gems = 0;
	public int Mines = 0;
	public int Dungeons = 0;
	
	
	
	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	public bool CheckGoalFullfilment(){
		
		bool res = false;
		
		
		foreach (Goal g in this.Goals){
			
			// if 
			// res = true;
			
		}
		
		
		return res;
		
	}
	
	
	
	public void CheckNegativeRessources(){
		
		if(this.Magic < 0){
			
			this.Magic = 0;
			
		} else if(this.Rocks < 0){
			
			this.Rocks = 0;
			
		} else if(this.Beast < 0){
			
			this.Beast = 0;
			
		} else if(this.Gems < 0){
			
			this.Gems = 0;
			
		} else if(this.Mines < 0){
			
			this.Mines = 0;
			
		} else if(this.Dungeons < 0){
			
			this.Dungeons = 0;
			
		} 
		
	}
	
}
